/**
 * Created by Administrator on 2016/10/25 0025.
 */
$(function(){
    $("#areaAdd").click(function(){
       $("#newArea").show();
    });
    $("#boardroomAdd").click(function(){
        $("#newBoardroom").show();
    });
    $(".cancelA").click(function(){
        $("#newArea").hide();
    });
    $(".cancelB").click(function(){
        $("#newBoardroom").hide();
    });
    $(".editD").click(function(){
        window.location.href = "editBoardroom.html";
    });
    $("#simpledatatable tbody td").on("click",function(){
        $("#editOne").show();
        $("#eidtO").css("background-color","#2dc3e8")
    });
    document.onclick = function(e)
    {
        var event = window.event || e;
        var obj = event.srcElement ? event.srcElement : event.target;
        if(e.target.tagName != "TD")
        {
            $("#editOne").hide();
            $("#eidtO").css("background-color","")
        }
    };
});
